<%@ page language="java" import="java.util.*" pageEncoding="utf-8"
	contentType="text/html; charset=utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>XXX人力资源管理系统</title>

		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="this is my page">
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">

		<link rel="stylesheet" href="<%=basePath%>/css/bootstrap.min.css" />
		<link rel="stylesheet"
			href="<%=basePath%>/css/bootstrap-responsive.min.css" />
		<link rel="stylesheet" href="<%=basePath%>/css/uniform.css" />
		<link rel="stylesheet" href="<%=basePath%>/css/select2.css" />
		<link rel="stylesheet" href="<%=basePath%>/css/unicorn.main.css" />
		<link rel="stylesheet" href="<%=basePath%>/css/unicorn.grey.css"
			class="skin-color" />


		<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
		<script type="text/javascript">
	    function selectedDept(){
	    var selectdept = document.getElementById("Dept").value;
		var deptname = document.getElementById("deptname");
		deptname.value = selectdept;<%--通过隐藏域向sevlet传送javascript的值--%>
	    formname.action="AdminSalaryCount?q=addempid";  
        formname.submit();  
	}
	</script>
	</head>

	<body>

		<div id="header">

		</div>
		<div>
		</div>
		<div id="user-nav" class="navbar navbar-inverse">
			<ul class="nav btn-group">
				<li class="btn btn-inverse">
					<a title="" href="selectuserresult.html"><i class="icon icon-user"></i> <span
						class="text">我的帐户信息</span> </a>
				</li>

				<li class="btn btn-inverse">
					<a title="" href="login.html"><i class="icon icon-share-alt"></i>
						<span class="text">退出</span> </a>
				</li>
			</ul>
		</div>
		<div id="sidebar">

			<ul>
				<li class="submenu">
					<a href="#"><i class="icon icon-th-list"></i> <span>系统管理
					</span> <span class="label">3</span> </a>
					<ul>
						<li>
							<a href="manageuser.html">用户管理</a>
						</li>
						<li>
							<a href="managelimit.html">权限管理</a>
						</li>
						<li>
							<a href="managerole.html">角色管理</a>
						</li>
					</ul>
				</li>
				<li class="submenu">
					<a href="#"><i class="icon icon-th-list"></i> <span>员工入职管理
					</span> <span class="label">2</span> </a>
					<ul>
						<li>
							<a href="manageemployeeinformation.html">员工信息管理</a>
						</li>
						<li>
							<a href="manageprobation.html">试用期管理</a>
						</li>
					</ul>
				</li>
				<li class="submenu">
					<a href="#"><i class="icon icon-th-list"></i> <span>人事管理</span>
						<span class="label">3</span>
					</a>
					<ul>
						<li>
							<a href="personremove.html">人员调动管理</a>
						</li>
						<li>
							<a href="personleave.html">离职人员管理</a>
						</li>
						<li>
							<a href="talentpool.html">人才库管理</a>
						</li>
					</ul>
				</li>
				<li class="active submenu ">
					<a href="#"><i class="icon icon-file"></i> <span>薪酬配置管理</span>
						<span class="label">3</span>
					</a>
					<ul>
						<li>
							<a href="salarypm.html">工资项目管理</a>
						</li>
						<li>
							<a href="regularsalary.html">固定工资管理</a>
						</li>
						<li class="active">
							<a href="attendance.html">考勤导入管理</a>
						</li>
					</ul>
				</li>
				<li class="submenu">
					<a href="#"><i class="icon icon-th-list"></i> <span>报表管理 </span> <span class="label">7</span></a>
					<ul>
						<li><a href="HR-Report.html">人事月报</a></li>
						<li><a href="New-Report.html">新聘员工报表</a></li>
						<li><a href="Quit-Report.html">离职员工报表</a></li>
						<li><a href="Department-Report.html">部门调动员工报表</a></li>
						<li><a href="Job-Report.html">岗位调动员工报表</a></li>
						<li><a href="Query-Report.html">工资查询报表</a></li>
						<li><a href="Statistics-Report.html">工资统计报表</a></li>
					</ul>
				</li>
				<li class="active submenu open">
					<a href="#"><i class="icon icon-th-list"></i> <span>薪酬结算管理
					</span> <span class="label">1</span> </a>
					<ul>
						<li class="active">
							<a href="salaryaccounts.jsp">工资结算管理</a>
						</li>
					</ul>
				</li>
				<li class="submenu">
					<a href="#"><i class="icon icon-th-list"></i> <span>组织结构管理
					</span> <span class="label">3</span> </a>
					<ul>
						<li>
							<a href="form-common.html">公司管理</a>
						</li>
						<li>
							<a href="form-validation.html">部门管理</a>
						</li>
						<li>
							<a href="form-validation.html">岗位管理</a>
						</li>
					</ul>
				</li>
				<li class="submenu">
					<a href="#"><i class="icon icon-th-list"></i> <span>日志管理</span>
						<span class="label">2</span> </a>
					<ul>
						<li>
							<a href="form-common.html">操作日志管理</a>
						</li>
						<li>
							<a href="form-validation.html">系统日志管理</a>
						</li>
					</ul>
				</li>
				<li class="submenu">
					<a href="#"><i class="icon icon-th-list"></i> <span>招聘管理</span>
						<span class="label">3</span> </a>
					<ul>
						<li>
							<a href="form-common.html">招聘渠道管理</a>
						</li>
						<li>
							<a href="form-common.html">招聘需求管理</a>
						</li>
						<li>
							<a href="form-validation.html">招聘活动管理</a>
						</li>
					</ul>
				</li>

			</ul>

		</div>

		<div id="style-switcher">
			<i class="icon-arrow-left icon-white"></i>
			<span>Style:</span>
			<a href="#grey"
				style="background-color: #555555; border-color: #aaaaaa;"></a>
			<a href="#blue" style="background-color: #2D2F57;"></a>
			<a href="#red" style="background-color: #673232;"></a>
		</div>
		<div id="content">
			<div id="content-header">
				<h1>
					薪酬结算管理
				</h1>
			</div>
			<div id="breadcrumb">
				<a href="../salaccountmnger/index.html" title="Go to Home"
					class="tip-bottom"><i class="icon-home"></i> Home</a>
				<a href="#" class="current">薪酬结算管理</a>
			</div>
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon"> <i class="icon-align-justify"></i> </span>
								<h5>
									工资结算操作
								</h5>
							</div>
							<div class="widget-content nopadding">
								<form action="AdminQuery" method="post" name="formname"
									class="form-horizontal" />
									<input type="hidden" id="deptname" name="deptname" value="" />
									<input type="hidden" id="button" name="button" value="" />
									<%--隐藏域 --%>
									<div class="control-group">
										<label class="control-label">
											月份
										</label>
										<div class="controls ">
											<select id="month" name="month">
												<%--											<option  value="Jan"  <c:if test="${requestScope.month}==Jan">selected="selected"</c:if>/> 一月 --%>
												<option value="1"
													<%if("1".equals((String)session.getAttribute("month"))){ %>
													selected="selected" <%}%> />
													一月
												<option value="2"
													<%if("2".equals((String)session.getAttribute("month"))){ %>
													selected="selected" <%}%> />
													二月
												<option value="3"
													<%if("3".equals((String)session.getAttribute("month"))){ %>
													selected="selected" <%}%> />
													三月
												<option value="4"
													<%if("4".equals((String)session.getAttribute("month"))){ %>
													selected="selected" <%}%> />
													四月
												<option value="5"
													<%if("5".equals((String)session.getAttribute("month"))){ %>
													selected="selected" <%}%> />
													五月
												<option value="6"
													<%if("6".equals((String)session.getAttribute("month"))){ %>
													selected="selected" <%}%> />
													六月
												<option value="7"
													<%if("7".equals((String)session.getAttribute("month"))){ %>
													selected="selected" <%}%> />
													七月
												<option value="8"
													<%if("8".equals((String)session.getAttribute("month"))){ %>
													selected="selected" <%}%> />
													八月
												<option value="9"
													<%if("9".equals((String)session.getAttribute("month"))){ %>
													selected="selected" <%}%> />
													九月
												<option value="10"
													<%if("10".equals((String)session.getAttribute("month"))){ %>
													selected="selected" <%}%> />
													十月
												<option value="11"
													<%if("11".equals((String)session.getAttribute("month"))){ %>
													selected="selected" <%}%> />
													十一月
												<option value="12"
													<%if("12".equals((String)session.getAttribute("month"))){ %>
													selected="selected" <%}%> />
													十二月
											</select>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">
											部门名
										</label>
										<div class="controls">
											<select id="Dept" name="Dept" onChange="selectedDept()">
												<option selected="selected" />
													请选择
													<c:forEach items="${sessionScope.dept}" var="department">
														<c:set var="bl" value="${department.deptname}"
															scope="request"></c:set>
														<%--将javascript的值转化为Java段的值 --%>
														<option value="${department.deptname}"
															<%if(request.getAttribute("bl").equals((String)session.getAttribute("deptname"))){ %>
															selected="selected" <%}%> />
															${department.deptname}
															<%--类型转化放在句首时作用域是整个表达式，不是紧跟其后的表达式，需要通过（）进行操作 --%>
													</c:forEach>
											</select>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">
											员工编号
										</label>
										<div class="controls">
											<select id="employeeid" name="employeeid">
												<option selected="selected">
													请选择
													<c:forEach items="${sessionScope.emp}" var="emp">
														<option value="${emp.employeeid}" />
															${emp.employeeid}
													</c:forEach>
											</select>
										</div>
									</div>
									<div class="form-actions">
										<button type="submit" class="btn btn-primary"
											onClick="document.getElementById('button').value='calculate'">
											开始计算
										</button>
									</div>
									<div class="form-actions">

										<button class="btn btn-primary"
											onClick="document.getElementById('button').value='queEmp'">
											查询员工信息
										</button>
										<button class="btn btn-primary"
											onClick="document.getElementById('button').value='queAttendance'">
											查询考勤信息
										</button>

									</div>
								</form>
							</div>
						</div>
					</div>
				</div>

				<div class="row-fluid">
					<div id="footer" class="span12">
						2012 &copy; Unicorn Admin. Brought to you by
						<a href="https://wrapbootstrap.com/user/diablo9983">diablo9983</a>
					</div>
				</div>
			</div>
		</div>
		<script src="<%=basePath%>/js/excanvas.min.js"></script>
		<script src="<%=basePath%>/js/jquery.min.js"></script>
		<script src="<%=basePath%>/js/jquery.ui.custom.js"></script>
		<script src="<%=basePath%>/js/bootstrap.min.js"></script>
		<script src="<%=basePath%>/js/jquery.uniform.js"></script>
		<script src="<%=basePath%>/js/select2.min.js"></script>
		<script src="<%=basePath%>/js/jquery.dataTables.min.js"></script>
		<script src="<%=basePath%>/js/unicorn.js"></script>
		<script src="<%=basePath%>/js/unicorn.tables.js"></script>
		<script src="<%=basePath%>/js/unicorn.dashboard.js"></script>
	</body>
</html>
